# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Maxim Karasev <begs@disroot.org>
pkgname=nvim-cmp-cmdline
pkgver=0.0.0_git20220502
_commit=c36ca4bc1dedb12b4ba6546b96c43896fd6e7252
pkgrel=0
pkgdesc="nvim-cmp source for vim cmdline"
url="https://github.com/hrsh7th/cmp-cmdline"
arch="noarch !riscv64" # neovim
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-cmdline/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-cmdline-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
c769a8963ebfd1de319e579bbd4f0adb3b311ef3c3f7cdf14ef51a8ae5b8b632d3fb48b01934ef88e3aa21181a5901ca27c9a739aad30a854d0fcc5703f1a5f2  nvim-cmp-0.0.0_git20220502.tar.gz
"
